import { Module } from '@nestjs/common';
import { RatingService } from './rating.service';
import { RatingController } from './rating.controller';
import { CoffeeModule } from '../coffee/coffee.module';
import { DatabaseModule } from '../database/database.module';

@Module({
  imports: [
    // 动态模块注册
    // DatabaseModule.register({
    //   type: 'postgres',
    //   host: 'localhost',
    //   port: 5432,
    //   password: 'pass123',
    // }),
    CoffeeModule,
  ],
  providers: [RatingService],
  controllers: [RatingController],
})
export class RatingModule {}
